package com.mo.design.pattern.behavior.interpret;

import java.util.regex.Matcher;

public class Pattern {

    public static void main(String[] args) {
        String str = "abfdhgffksd";
        java.util.regex.Pattern pattern = java.util.regex.Pattern.compile("\\w*");
        Matcher matcher = pattern.matcher(str);
        System.out.println(matcher.matches());

    }
}
